package cn.bgs.wjx.WjxMapper;

import cn.bgs.ActivityManagement.pojo.Announcement;
import cn.bgs.CommunityManagement.pojo.*;
import cn.bgs.DealershipManagement.pojo.VehicleCar;
import cn.bgs.DealershipManagement.pojo.VehicleMonthcar;
import cn.bgs.UserManagement.pojo.File;
import cn.bgs.UserManagement.pojo.User;
import cn.bgs.UserManagement.pojo.VisitorsRecord;
import cn.bgs.wjx.pojo.CellIntermediateWvo;
import cn.bgs.wjx.pojo.VehicleCarWvo;
import cn.bgs.wjx.pojo.VisitorsRecordWvo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface WjxMapper {
    Announcement qqq(int i);

    void WjxAddVisitorsRecord(VisitorsRecord visitorsRecord);

    User WjxLogin(User user);

    List<CellIntermediateWvo> WjxFindDeaultState(@Param("userId")Integer userId,@Param("middleId")Integer middleId);

    List<VisitorsRecordWvo> WjxRecorddetails(@Param("userId") Integer userId, @Param("startTime") String startTime, @Param("endTime") String endTime);

    void WjxinsertFile(File file2);

    List<Community> WjxFindAllCommunity();

    List<Building> WjxFindAllBuilding();

    List<Floor> WjxFindAllFloor();

    List<Portal> WjxFindAllPortal();

    //查询原来的默认房屋
    Integer WjxFindDeaultState2(CellIntermediateWvo cellIntermediate);

    void cellIntermediate(CellIntermediateWvo cellIntermediate);
    //修改原来的默认房屋
    void DeletePortalstate(Integer id);

    void updatePortalYes(Integer portalId);
    void updatePortalNo(Integer portalId);

    //查询我的车辆信息
    List<VehicleCarWvo> WjxFindVehicleCar(Integer userId);

    //添加车辆
    void WjxAddVehicleCar(VehicleCarWvo car);

    //添加file表
    void wjxAddFile(File file);

    //修改车辆信息
    void WjxUpdateVehicleCar(VehicleCarWvo carWvo);

    //修改file表
    void wjxUpdateFile(File file);

    //删除车辆信息
    void WjxDeleteVehicleCar(VehicleCarWvo carWvo);

    //删除file表
    void wjxDeleteFile(Integer vehicleCarId);

    //添加月卡
    void WjxAddMonthCar(VehicleMonthcar vehicleMonthcar);

    void WjxUpdateCar(Integer vehicleCarId);

    void WjxDeleteUserMoney(Integer userId);

    //查询身份证
    Object getUserImg(Integer userId);

    //修改房屋状态
    void UpdateCellIntermediate(CellIntermediateWvo cellIntermediate);

    void deleteFangwu(Integer middleId);

    List<VisitorsRecordWvo> findTCJF(Integer userId);

    void deleUserMoney(@Param("userId") Integer userId,@Param("money")  Double money);

    void deleteTcjf(Integer visitorsRecordId);
}
